package com.bys.admin.system.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.bys.config.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;


import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author bys
 * @since 2023-06-26
 */
@Getter
@Setter
@TableName(value = "sys_user",autoResultMap = true)
@Schema(name = "SysUser对象", description = "")
public class SysUser  extends BaseEntity {

    private static final long serialVersionUID = 1L;
    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "用户账号")
    private String userName;

    @Schema(description = "用户密码")
    @JsonIgnore
    private String password;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "昵称")
    private String nickName;

    @Schema(description = "性别")
    private String sex;

    @Schema(description = "部门")
    private Long deptId;
    @Schema(description = "状态")
    private  Integer status;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<Integer> roleIds;

}
